{$CLEO .cs}
{$USE cleo+}
0000:


0362: remove_actor $PLAYER_ACTOR from_car_and_place_at -896.4639 -6949.2178 12.2168
model.Load(#AK47)
model.Load(#MALE01)
load_requested_models 



      0AD1: show_formatted_text_highpriority "Created script %d" time 1000 0@ 
 
    10@=0
    1@ = actor.Create(4,#MALE01 , -901.0458, -6967.5293, 7.8359)
        wait 1000
      while true
      wait 0
      
      0AD1: show_formatted_text_highpriority "Goods %d Scripted %d" time 1000 10@ 0@
            if cheat "fail"
            then
                  break 
            end
            if  and 
             10@<=0
            0104:   actor $PLAYER_ACTOR near_actor 1@ radius 2.0 2.0 2.0 sphere 1

            then 
                018C: play_sound 1052 at 0.0 0.0 0.0
                  stream_custom_script_from_label @SUB_SCRIPTED 0@
                  get_last_created_custom_script 0@
                10@=2  
              //  terminate_all_custom_scripts_with_this_name 'aaaaaaa'

                //0AC6: 10@ = label @SUB_SCRIPTED pointer
                

            end
      end 
      
      actor.RemoveReferences(1@)
      show_styled_text "~r~You suck!" 2000 5 
 terminate_this_custom_script

:SUB_SCRIPTED

10@=1
model.Load(#MP5LNG)
model.Load(#BMYPOL1)
load_requested_models 
   show_styled_text "~r~Kill enemies stupid!" 2000 5
              0@ = actor.Create(gang1, #BMYPOL1 ,-961.0377, -6985.895, 8.483 )
              actor.GiveWeaponAndAmmo( 0@, ak47, 9999)
              1@ = actor.Create(gang1, #BMYPOL1 ,-964.0436, -6977.4712, 8.483  )
              actor.GiveWeaponAndAmmo( 1@, mp5, 9999)
              2@ = actor.Create(gang1, #BMYPOL1 , -948.068, -6970.3462, 8.483 )
              actor.GiveWeaponAndAmmo( 2@, mp5, 9999)
              wait 7000
              actor.DestroyInstantly(0@)
              actor.DestroyInstantly(1@)
              actor.DestroyInstantly(2@)
 terminate_this_custom_script